// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#nullable disable

using System;
using System.Collections.Generic;

namespace Azure.ResourceManager.ResourceGraph.Models
{
    /// <summary> The options for history request evaluation. </summary>
    public partial class ResourcesHistoryRequestOptions
    {
        /// <summary>
        /// Keeps track of any properties unknown to the library.
        /// <para>
        /// To assign an object to the value of this property use <see cref="BinaryData.FromObjectAsJson{T}(T, System.Text.Json.JsonSerializerOptions?)"/>.
        /// </para>
        /// <para>
        /// To assign an already formatted json string to this property use <see cref="BinaryData.FromString(string)"/>.
        /// </para>
        /// <para>
        /// Examples:
        /// <list type="bullet">
        /// <item>
        /// <term>BinaryData.FromObjectAsJson("foo")</term>
        /// <description>Creates a payload of "foo".</description>
        /// </item>
        /// <item>
        /// <term>BinaryData.FromString("\"foo\"")</term>
        /// <description>Creates a payload of "foo".</description>
        /// </item>
        /// <item>
        /// <term>BinaryData.FromObjectAsJson(new { key = "value" })</term>
        /// <description>Creates a payload of { "key": "value" }.</description>
        /// </item>
        /// <item>
        /// <term>BinaryData.FromString("{\"key\": \"value\"}")</term>
        /// <description>Creates a payload of { "key": "value" }.</description>
        /// </item>
        /// </list>
        /// </para>
        /// </summary>
        private IDictionary<string, BinaryData> _serializedAdditionalRawData;

        /// <summary> Initializes a new instance of <see cref="ResourcesHistoryRequestOptions"/>. </summary>
        public ResourcesHistoryRequestOptions()
        {
        }

        /// <summary> Initializes a new instance of <see cref="ResourcesHistoryRequestOptions"/>. </summary>
        /// <param name="interval"> The time interval used to fetch history. </param>
        /// <param name="top"> The maximum number of rows that the query should return. Overrides the page size when ```$skipToken``` property is present. </param>
        /// <param name="skip"> The number of rows to skip from the beginning of the results. Overrides the next page offset when ```$skipToken``` property is present. </param>
        /// <param name="skipToken"> Continuation token for pagination, capturing the next page size and offset, as well as the context of the query. </param>
        /// <param name="resultFormat"> Defines in which format query result returned. </param>
        /// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
        internal ResourcesHistoryRequestOptions(DateTimeInterval interval, int? top, int? skip, string skipToken, ResultFormat? resultFormat, IDictionary<string, BinaryData> serializedAdditionalRawData)
        {
            Interval = interval;
            Top = top;
            Skip = skip;
            SkipToken = skipToken;
            ResultFormat = resultFormat;
            _serializedAdditionalRawData = serializedAdditionalRawData;
        }

        /// <summary> The time interval used to fetch history. </summary>
        public DateTimeInterval Interval { get; set; }
        /// <summary> The maximum number of rows that the query should return. Overrides the page size when ```$skipToken``` property is present. </summary>
        public int? Top { get; set; }
        /// <summary> The number of rows to skip from the beginning of the results. Overrides the next page offset when ```$skipToken``` property is present. </summary>
        public int? Skip { get; set; }
        /// <summary> Continuation token for pagination, capturing the next page size and offset, as well as the context of the query. </summary>
        public string SkipToken { get; set; }
        /// <summary> Defines in which format query result returned. </summary>
        public ResultFormat? ResultFormat { get; set; }
    }
}
